package Vista;

import Control.Control;

public class Loggin extends javax.swing.JPanel {

    private Control control;

    public Loggin(Control pControl) {
        this.control = pControl;
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jPasswordField1 = new javax.swing.JPasswordField();
        logIngresar = new javax.swing.JButton();
        jCheckBox1 = new javax.swing.JCheckBox();
        jLabel6 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();

        setBackground(new java.awt.Color(255, 255, 255));
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 3, 24)); // NOI18N
        jLabel1.setText("Bienvenido al Administrador de Horarios");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 40, 490, -1));

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel2.setText("Usuario:");
        jLabel2.setToolTipText("Digite el  usuario al cual desea ingresar");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 190, -1, -1));

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel3.setText("Contraseña:");
        add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 240, -1, -1));

        jPasswordField1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jPasswordField1.setToolTipText("¿Olvidó su contraseña?, ve a la opcion Olvide mi contraseña");
        jPasswordField1.setSelectionColor(new java.awt.Color(51, 204, 0));
        add(jPasswordField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 230, 150, 30));

        logIngresar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/Ingresar.png"))); // NOI18N
        logIngresar.setBorder(null);
        logIngresar.setBorderPainted(false);
        logIngresar.setContentAreaFilled(false);
        logIngresar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        logIngresar.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/IngresarPressed.png"))); // NOI18N
        logIngresar.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/IngresarHover.png"))); // NOI18N
        logIngresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logIngresarActionPerformed(evt);
            }
        });
        add(logIngresar, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, -1, -1));

        jCheckBox1.setBackground(new java.awt.Color(255, 255, 255));
        jCheckBox1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jCheckBox1.setText("Recordárme");
        add(jCheckBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 300, -1, -1));

        jLabel6.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(204, 0, 0));
        jLabel6.setText("Error datos no válidos");
        add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 280, 130, -1));
        jLabel6.setVisible(false);

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/login.jpg"))); // NOI18N
        add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 180, -1, -1));

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel4.setText("¿Olvidó su contraseña?");
        add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 440, -1, -1));

        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 180, 150, 30));
    }// </editor-fold>//GEN-END:initComponents

    private void logIngresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logIngresarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_logIngresarActionPerformed

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    public javax.swing.JLabel jLabel6;
    public javax.swing.JPasswordField jPasswordField1;
    public javax.swing.JTextField jTextField1;
    public javax.swing.JButton logIngresar;
    // End of variables declaration//GEN-END:variables
}
